/*
 * CoverFlowTest.fx
 *
 * Created on Mar 29, 2010, 3:44:01 PM
 */

package fxgreader.test;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import fxgreader.components.TextCoverFlowNode;
import fxgreader.components.CoverFlow2;
import fxgreader.components.CoverFlow;

/**
 * @author perkintang
 */
var coverflow2 : CoverFlow2 = CoverFlow2{
                    maxWidth : bind stage.width
                    nodeH:50
                    nodeW:100
                    nodes : [TextCoverFlowNode{
                                content : "Apple"
                              }
                     ]
        };
//var coverflow : CoverFlow = CoverFlow{
//                        translateY: 200
//                        nodeH:50
//                        nodeW:100
//                        nodes : [TextCoverFlowNode{
//                                content : "Apple"
//                              }]};
var stage : Stage= Stage{
    fullScreen : true
    scene: Scene {
        fill : Color.BLACK
        content: [coverflow2]
    }
}
var node = TextCoverFlowNode{
                                content : "Articles"
                              };
var node2 = TextCoverFlowNode{
                                content : "Articles"
                              };
coverflow2.addNode(node);
//coverflow.addNode(node2);
node.load();
//node2.load();
stage;